<template>
    <view class="local_nav">
        <!-- <view class="icon-container" @click="navBack"> -->
        <view class="icon-container">
            <view class="icon"></view>
        </view>
        <view class="nav_title" :style="{ color: color }">
            <slot></slot>
        </view>
    </view>
</template>

<script setup lang="js">
import { ref, onMounted } from "vue";

const props = defineProps({
    color: {
        type: String,
        default: "#333",
    },
});

const navBack = () => {
    // #ifndef MP-ALIPAY
    // uni.navigateBack();
    // #endif
}
</script>

<style lang="scss" scoped>
.local_nav {
    width: 100%;
    height: 86rpx;
    background-color: transparent;
    display: flex;
    .icon-container {
        width: 100rpx;
        height: 86rpx;
    }
    .nav_title {
        font-size: 34rpx;
        line-height: 86rpx;
    }
}
</style>
